<?php


namespace app\admin\validate;


use think\Validate;

class SpecsValue extends Validate
{
    protected $rule = [
        'specs_id' => 'require',
        'name' => 'require',
    ];

    protected $message = [
        'specs_id' => 'specs_id名必须',
        'name.require' => 'name必须',
        'name.unique' => 'name重复',

    ];

    protected $scene = [
        'save' => ['specs_id', 'name'],
        'delete' => ['status', 'id'],
    ];


}